package com.zlb.demo.domain.vo;

import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;

import java.io.Serializable;

/**
 * @Description
 * @Author zlb
 * @Since 2024-03-22 17:13:40
 */
public class FamilyInfoQueryVO implements Serializable {

    // 户主姓名
    private String householderName;

    // 家庭成员姓名
    private String memberName;

    // 最小家庭成员数量
    private Integer minMemberCount;

    // 最大家庭成员数量
    private Integer maxMemberCount;

    // 最小房屋总面积
    private Double minTotalArea;

    // 最大房屋总面积
    private Double maxTotalArea;

    public boolean query(){
        return ObjectUtil.isAllEmpty(
                this.minTotalArea,
                this.maxTotalArea,
                this.memberName,
                this.minMemberCount,
                this.maxMemberCount);
    }

    public String getHouseholderName() {
        return householderName;
    }

    public void setHouseholderName(String householderName) {
        this.householderName = householderName;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public Integer getMinMemberCount() {
        return minMemberCount;
    }

    public void setMinMemberCount(Integer minMemberCount) {
        this.minMemberCount = minMemberCount;
    }

    public Integer getMaxMemberCount() {
        return maxMemberCount;
    }

    public void setMaxMemberCount(Integer maxMemberCount) {
        this.maxMemberCount = maxMemberCount;
    }

    public Double getMinTotalArea() {
        return minTotalArea;
    }

    public void setMinTotalArea(Double minTotalArea) {
        this.minTotalArea = minTotalArea;
    }

    public Double getMaxTotalArea() {
        return maxTotalArea;
    }

    public void setMaxTotalArea(Double maxTotalArea) {
        this.maxTotalArea = maxTotalArea;
    }
}
